package com.fdzc.service;

import com.fdzc.dao.reportDao;
import com.fdzc.model.report;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class reportServiceImpl implements reportService {
    @Autowired
    reportDao rDao;
    @Override
    public List<report> getList(Map<String,String> parm) {
        return rDao.getList(parm);
    }

    @Override
    public void save(report newReport) {
        rDao.save(newReport);
    }

    @Override
    public report getReportById(Integer id) {
        return rDao.getReportById(id);
    }

    @Override
    public void delete(Integer id) {
        rDao.delete(id);
    }

    @Override
    public void update(report uReport) {
        rDao.update(uReport);
    }

    @Override
    public List<report> queryAllReportInfoToExcel() {
        return rDao.exportReportInfoIntoExcel();
    }
}
